import { FC } from "react";
import { Modal } from "@arco-design/web-react";

export interface DeleteModalProps {
  visible?: boolean;
  onClose?: () => void;
  onConfirm?: () => void;
}

export const DeleteModal: FC<DeleteModalProps> = ({
  visible,
  onClose,
  onConfirm,
}) => {
  return (
    <Modal
      title="确认删除用户"
      visible={visible}
      onCancel={onClose}
      onOk={onConfirm}
      unmountOnExit
      mountOnEnter
    >
      <p>确定要删除该用户吗？</p>
    </Modal>
  );
};
